# encoding: utf-8

module Capevaluation
  module Constant
    module Exception
      # 在这里添加常量定义
      SAMPLE_CODE         = 0.freeze
      SAMPLE_MSG          = 'ok'.freeze
      SAMPLE_HTTP_CODE    = 200.freeze

      # no access exception
      NO_ACCESS_CODE      = -1.freeze
      NO_ACCESS_MSG       = 'No Access!'.freeze
      NO_ACCESS_HTTP_CODE = 403.freeze

      # resend exception
      RESEND_MSG          = 'resend this message'

      INVALID_PLAY_CODE_MSG = 'invalid play code.'
      INVALID_PLAY_ITEMS_MSG = 'invalid play items.'
      MATCH_BEGINNING_MSG = 'match beginning.'
      INVALID_PLAY_CODE      = 6001.freeze
      INVALID_PLAY_ITEMS_CODE      = 6002.freeze
      MATCH_BEGINNING_CODE      = 6003.freeze

      INVALID_PARAMS_MSG = 'invaild params.'
      INVALID_PARAMS_CODE = -2.freeze

      LACK_OF_PARAMS_MSG = 'lack of params'
      LACK_OF_PARAMS_CODE = -3.freeze



    end
  end
end
